package com.ruoyi.system.api.domain;

import java.io.Serializable;

/**
 * 工作记录表
 * @TableName trace_task
 */
public class TraceTask implements Serializable {
    /**
     * 任务编号
     */
    private String taskId;

    /**
     * 作物编号
     */
    private String cropsId;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 发布人id
     */
    private String leaderId;

    /**
     * 发布人名称
     */
    private String leaderName;

    /**
     * 发布时间
     */
    private String time;

    /**
     * 0未完成 ， 1已完成
     */
    private Integer status;

    /**
     * 任务备注
     */
    private String taskRemark;


    /**
     * 任务编号
     */
    public String getTaskId() {
        return taskId;
    }

    /**
     * 任务编号
     */
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    /**
     * 作物编号
     */
    public String getCropsId() {
        return cropsId;
    }

    /**
     * 作物编号
     */
    public void setCropsId(String cropsId) {
        this.cropsId = cropsId;
    }

    /**
     * 任务名称
     */
    public String getTaskName() {
        return taskName;
    }

    /**
     * 任务名称
     */
    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    /**
     * 发布人id
     */
    public String getLeaderId() {
        return leaderId;
    }

    /**
     * 发布人id
     */
    public void setLeaderId(String leaderId) {
        this.leaderId = leaderId;
    }

    /**
     * 发布人名称
     */
    public String getLeaderName() {
        return leaderName;
    }

    /**
     * 发布人名称
     */
    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    /**
     * 发布时间
     */
    public String getTime() {
        return time;
    }

    /**
     * 发布时间
     */
    public void setTime(String time) {
        this.time = time;
    }

    /**
     * 0未完成 ， 1已完成
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 0未完成 ， 1已完成
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 任务备注
     */
    public String getTaskRemark() {
        return taskRemark;
    }

    /**
     * 任务备注
     */
    public void setTaskRemark(String taskRemark) {
        this.taskRemark = taskRemark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TraceTask other = (TraceTask) that;
        return (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
            && (this.getCropsId() == null ? other.getCropsId() == null : this.getCropsId().equals(other.getCropsId()))
            && (this.getTaskName() == null ? other.getTaskName() == null : this.getTaskName().equals(other.getTaskName()))
            && (this.getLeaderId() == null ? other.getLeaderId() == null : this.getLeaderId().equals(other.getLeaderId()))
            && (this.getLeaderName() == null ? other.getLeaderName() == null : this.getLeaderName().equals(other.getLeaderName()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getTaskRemark() == null ? other.getTaskRemark() == null : this.getTaskRemark().equals(other.getTaskRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getCropsId() == null) ? 0 : getCropsId().hashCode());
        result = prime * result + ((getTaskName() == null) ? 0 : getTaskName().hashCode());
        result = prime * result + ((getLeaderId() == null) ? 0 : getLeaderId().hashCode());
        result = prime * result + ((getLeaderName() == null) ? 0 : getLeaderName().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getTaskRemark() == null) ? 0 : getTaskRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", taskId=").append(taskId);
        sb.append(", cropsId=").append(cropsId);
        sb.append(", taskName=").append(taskName);
        sb.append(", leaderId=").append(leaderId);
        sb.append(", leaderName=").append(leaderName);
        sb.append(", time=").append(time);
        sb.append(", status=").append(status);
        sb.append(", taskRemark=").append(taskRemark);
        sb.append("]");
        return sb.toString();
    }
}